﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="View.aspx.cs" Inherits="WebClient.View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
    <table cellpadding="5%">
        <tr>
            <td colspan="2"  align="left">
                <h1>Interpolation Search</h1>
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                Enter the array elements, separated by commas:
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                <asp:TextBox ID="TextBoxArray" runat="server" Width="100%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                Enter the element to find:
            </td>
        </tr>
        <tr>
            <td width="50%"  align="left">
                <asp:TextBox ID="TextBoxElementToFind" runat="server"  width="100%"></asp:TextBox>
            </td>
            <td  align="left">
                <asp:Button ID="ButtonSearch" runat="server" Text="Search" width="100%" 
                    onclick="ButtonSearch_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                Sorted array:
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                <asp:TextBox ID="TextBoxSortedArray" runat="server" ReadOnly="True" Width="100%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                Position of required element in sorted array:
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                 <asp:TextBox ID="TextBoxPosition" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left">

                    <asp:RadioButtonList ID="RadioGroup" runat="server" 
                        onselectedindexchanged="RadioGroup_SelectedIndexChanged" >
                        <asp:ListItem Selected="True">txt</asp:ListItem>
                        <asp:ListItem>html</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td align="left">
                <asp:Button ID="ButtonShowLog" runat="server" Text="Show Log" Width="100%" 
                    onclick="ButtonShowLog_Click"/>
            </td>
        </tr>
        <tr>
            <td colspan="2"  align="left">
                <asp:Label ID="ErrorLabel" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
